<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>商家列表</title>
<style>
* {
	/* 	font-size: 18px; */
	
}

body, html {
	width: 100%;
	height: 100%;
}

table {
	border: 1px solid #eaeaea;
	width: 80%;
}

td {
	border: 1px solid #eaeaea;
}

th {
	text-align: left;
}
</style>

</head>
<body>
	<div class="maintainer" align="center">
		<h1>商家列表</h1>
		<table align="center">
			<tr>
				<th>商家老板</th>
				<th>商家名称</th>
				<th>商家账号</th>
				<th>营业范围</th>
				<th>操作</th>
			</tr>
			<c:forEach items="${merchantList }" var="merchant">
				<tr>
					<td>${merchant.merchantName }</td>
					<td>${merchant.merchantShopname }</td>
					<td>${merchant.merchantAccount }</td>
					<td>${merchant.merchantScope }</td>
					<td>
						<a href="gotoUpdateMerchant?merchantId=${merchant.merchantId}"> 更新 </a>
						<a href="deleteMerchant?merchantId=${merchant.merchantId}">删除 </a></td>
				    </tr>
			</c:forEach>
		</table>
		
		<div style="margin-top: 50px;">
		 <button>
		 	<a href="gotoAdd">添加商家</a>		 
		 </button>
		</div>
	</div>
	<script>
		function updateMerchant(merchantId) {}
	</script>
</body>
</html>